﻿/**
 * Netflix Subtitles Database
 * Copyright (c) 2013 Rui Sergio Carvalho dos Santos
 *
 * Licensed under MIT
 * http://www.opensource.org/licenses/mit-license.php
 */

(function () {
    chrome.tabs.onUpdated.addListener(
		function (tabId, changeInfo, tab) {
		    if (tab.url.match(/netflix(.*)WiPlayer/gi) != null) {
		        localStorage['netflix_url'] = tab.url;
		        chrome.pageAction.show(tabId);
		    }
		}
	);
})();